#include<my_header.h>
typedef enum{
    CD,
    LS,
    PUTS,
    GETS,
    REMOVE,
    PWD,
    MKDIR,
    RMDIR,
    FAILURE
}Type;
typedef struct 
{
    int type;
    int length;
    char data[1024];
}train_t;
int recvn(int sockfd,void *buf,int length);
int up_load(int netfd,char *filename);
int send_command(int sockfd, Type type, const char *result);
int send_strarr(int sockfd,char *strarr[]);
int recv_response(int sockfd);
int down_load(int netfd,char *filename);
int handle_puts(int netfd,  char *filename);